Move the decoration of all the Xen-API methods out of XendAPI.__init__ and
authorEwan Mellor <ewan@xensource.com>
Fri, 22 Dec 2006 11:38:05 +0000 (11:38 +0000)
committerEwan Mellor <ewan@xensource.com>
Fri, 22 Dec 2006 11:38:05 +0000 (11:38 +0000)
commit9cb668c3348b00ee1000ff90492a3e4429ed5aaa
tree61e2629d8425fe54df20d409637c358b730d1b93
parent4de19fce569aa33d7eadb1e3c5c62e8ee55e8741
Move the decoration of all the Xen-API methods out of XendAPI.__init__ and
into the module scope.  This avoids the decorators being added multiple times,
once for each server running.

Fix handling of MESSAGE_PARAMETER_COUNT_MISMATCH in many cases.  Move the
get_by_uuid declarations, so that those functions get the per-class validator
as well, to check for existence of the object requested.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/XendAPI.py